<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>OpenLoong Dynamics Control: UIctr Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
</script>
<script type="text/javascript" async="async" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">OpenLoong Dynamics Control
   &#160;<span id="projectnumber">v0.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="classUIctr-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">UIctr Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>User interface control class.  
 <a href="classUIctr.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="GLFW__callbacks_8h_source.html">GLFW_callbacks.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac7f7359994a2338fb761080d5fd258b4"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#ac7f7359994a2338fb761080d5fd258b4">UIctr</a> (mjModel *modelIn, mjData *dataIn)</td></tr>
<tr class="memdesc:ac7f7359994a2338fb761080d5fd258b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Construct a new <a class="el" href="classUIctr.html" title="User interface control class.">UIctr</a> object.  <a href="classUIctr.html#ac7f7359994a2338fb761080d5fd258b4">More...</a><br /></td></tr>
<tr class="separator:ac7f7359994a2338fb761080d5fd258b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a087447123941f53a571a61dc667daafe"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a087447123941f53a571a61dc667daafe">iniGLFW</a> ()</td></tr>
<tr class="memdesc:a087447123941f53a571a61dc667daafe"><td class="mdescLeft">&#160;</td><td class="mdescRight">initialize glfw  <a href="classUIctr.html#a087447123941f53a571a61dc667daafe">More...</a><br /></td></tr>
<tr class="separator:a087447123941f53a571a61dc667daafe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab1ca66138345f413e29662d2f0d7d07f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#ab1ca66138345f413e29662d2f0d7d07f">createWindow</a> (const char *windowTitle, bool saveVideo)</td></tr>
<tr class="memdesc:ab1ca66138345f413e29662d2f0d7d07f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Window object.  <a href="classUIctr.html#ab1ca66138345f413e29662d2f0d7d07f">More...</a><br /></td></tr>
<tr class="separator:ab1ca66138345f413e29662d2f0d7d07f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a19e0f736d7afbf0d186c296dd36306d4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a19e0f736d7afbf0d186c296dd36306d4">updateScene</a> ()</td></tr>
<tr class="memdesc:a19e0f736d7afbf0d186c296dd36306d4"><td class="mdescLeft">&#160;</td><td class="mdescRight">update the scene and rerender the window  <a href="classUIctr.html#a19e0f736d7afbf0d186c296dd36306d4">More...</a><br /></td></tr>
<tr class="separator:a19e0f736d7afbf0d186c296dd36306d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a08662b29ecd40b29091da61a6f74f0a9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a08662b29ecd40b29091da61a6f74f0a9">Keyboard</a> (int key, int scancode, int act, int mods)</td></tr>
<tr class="memdesc:a08662b29ecd40b29091da61a6f74f0a9"><td class="mdescLeft">&#160;</td><td class="mdescRight">keyboard callback  <a href="classUIctr.html#a08662b29ecd40b29091da61a6f74f0a9">More...</a><br /></td></tr>
<tr class="separator:a08662b29ecd40b29091da61a6f74f0a9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e1bb14aeca15e5fe8db238117e92a2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a2e1bb14aeca15e5fe8db238117e92a2c">Mouse_button</a> (int button, int act, int mods)</td></tr>
<tr class="memdesc:a2e1bb14aeca15e5fe8db238117e92a2c"><td class="mdescLeft">&#160;</td><td class="mdescRight">mouse button callback  <a href="classUIctr.html#a2e1bb14aeca15e5fe8db238117e92a2c">More...</a><br /></td></tr>
<tr class="separator:a2e1bb14aeca15e5fe8db238117e92a2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe0583a3cfb9dfeef3254cb360dd0c06"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#afe0583a3cfb9dfeef3254cb360dd0c06">Mouse_move</a> (double xpos, double ypos)</td></tr>
<tr class="memdesc:afe0583a3cfb9dfeef3254cb360dd0c06"><td class="mdescLeft">&#160;</td><td class="mdescRight">mouse move callback  <a href="classUIctr.html#afe0583a3cfb9dfeef3254cb360dd0c06">More...</a><br /></td></tr>
<tr class="separator:afe0583a3cfb9dfeef3254cb360dd0c06"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af995236b8ef2ccd0140581130c4d4b36"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#af995236b8ef2ccd0140581130c4d4b36">Scroll</a> (double xoffset, double yoffset)</td></tr>
<tr class="memdesc:af995236b8ef2ccd0140581130c4d4b36"><td class="mdescLeft">&#160;</td><td class="mdescRight">scroll callback  <a href="classUIctr.html#af995236b8ef2ccd0140581130c4d4b36">More...</a><br /></td></tr>
<tr class="separator:af995236b8ef2ccd0140581130c4d4b36"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afd0f6da49027175ca125ae8b373ec070"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#afd0f6da49027175ca125ae8b373ec070">Close</a> ()</td></tr>
<tr class="memdesc:afd0f6da49027175ca125ae8b373ec070"><td class="mdescLeft">&#160;</td><td class="mdescRight">close the glfw and free mujoco sence and context  <a href="classUIctr.html#afd0f6da49027175ca125ae8b373ec070">More...</a><br /></td></tr>
<tr class="separator:afd0f6da49027175ca125ae8b373ec070"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad381cf5b25d24a8fdd9438c9c7162fe1"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#ad381cf5b25d24a8fdd9438c9c7162fe1">enableTracking</a> ()</td></tr>
<tr class="memdesc:ad381cf5b25d24a8fdd9438c9c7162fe1"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable camera tracking mode  <a href="classUIctr.html#ad381cf5b25d24a8fdd9438c9c7162fe1">More...</a><br /></td></tr>
<tr class="separator:ad381cf5b25d24a8fdd9438c9c7162fe1"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a4bf86b3aed4b26e00e14729c08ac572a"><td class="memItemLeft" align="right" valign="top"><a id="a4bf86b3aed4b26e00e14729c08ac572a"></a>
GLFWwindow *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a4bf86b3aed4b26e00e14729c08ac572a">window</a></td></tr>
<tr class="memdesc:a4bf86b3aed4b26e00e14729c08ac572a"><td class="mdescLeft">&#160;</td><td class="mdescRight">glfw window pointer <br /></td></tr>
<tr class="separator:a4bf86b3aed4b26e00e14729c08ac572a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecff34160dca93bdb2b5e58b523af5fd"><td class="memItemLeft" align="right" valign="top"><a id="aecff34160dca93bdb2b5e58b523af5fd"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#aecff34160dca93bdb2b5e58b523af5fd">keyb</a> {0}</td></tr>
<tr class="memdesc:aecff34160dca93bdb2b5e58b523af5fd"><td class="mdescLeft">&#160;</td><td class="mdescRight">key being acted <br /></td></tr>
<tr class="separator:aecff34160dca93bdb2b5e58b523af5fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab9a4496c4dbba5ae3bbca71e0af8f810"><td class="memItemLeft" align="right" valign="top"><a id="ab9a4496c4dbba5ae3bbca71e0af8f810"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>motion_state</b> {0}</td></tr>
<tr class="separator:ab9a4496c4dbba5ae3bbca71e0af8f810"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5a93ff3a35e7bcd9578510af831418b4"><td class="memItemLeft" align="right" valign="top"><a id="a5a93ff3a35e7bcd9578510af831418b4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>motion_state_ex</b> {0}</td></tr>
<tr class="separator:a5a93ff3a35e7bcd9578510af831418b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5248ee47688aaff355b1b4649dc1ed8c"><td class="memItemLeft" align="right" valign="top"><a id="a5248ee47688aaff355b1b4649dc1ed8c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a5248ee47688aaff355b1b4649dc1ed8c">button_left</a> {false}</td></tr>
<tr class="memdesc:a5248ee47688aaff355b1b4649dc1ed8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether left button is pressed <br /></td></tr>
<tr class="separator:a5248ee47688aaff355b1b4649dc1ed8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a12a7964c62c00d5eddee3f66d4139324"><td class="memItemLeft" align="right" valign="top"><a id="a12a7964c62c00d5eddee3f66d4139324"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a12a7964c62c00d5eddee3f66d4139324">button_middle</a> {false}</td></tr>
<tr class="memdesc:a12a7964c62c00d5eddee3f66d4139324"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether middle button is pressed <br /></td></tr>
<tr class="separator:a12a7964c62c00d5eddee3f66d4139324"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5eafa2363ee4546fd59d7d4e351dfcc6"><td class="memItemLeft" align="right" valign="top"><a id="a5eafa2363ee4546fd59d7d4e351dfcc6"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a5eafa2363ee4546fd59d7d4e351dfcc6">button_right</a> {false}</td></tr>
<tr class="memdesc:a5eafa2363ee4546fd59d7d4e351dfcc6"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether right button is pressed <br /></td></tr>
<tr class="separator:a5eafa2363ee4546fd59d7d4e351dfcc6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7f99212b42f78d3f07735d9b268e1ad0"><td class="memItemLeft" align="right" valign="top"><a id="a7f99212b42f78d3f07735d9b268e1ad0"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a7f99212b42f78d3f07735d9b268e1ad0">runSim</a> {true}</td></tr>
<tr class="memdesc:a7f99212b42f78d3f07735d9b268e1ad0"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether the simulation is running <br /></td></tr>
<tr class="separator:a7f99212b42f78d3f07735d9b268e1ad0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9b7897ff484dbc036f3b1aa86e8ec55"><td class="memItemLeft" align="right" valign="top"><a id="ac9b7897ff484dbc036f3b1aa86e8ec55"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#ac9b7897ff484dbc036f3b1aa86e8ec55">isContinuous</a> {true}</td></tr>
<tr class="memdesc:ac9b7897ff484dbc036f3b1aa86e8ec55"><td class="mdescLeft">&#160;</td><td class="mdescRight">whether the simulation is continous or paused <br /></td></tr>
<tr class="separator:ac9b7897ff484dbc036f3b1aa86e8ec55"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b65b69372d6fc3c9c5174896aef9c16"><td class="memItemLeft" align="right" valign="top"><a id="a0b65b69372d6fc3c9c5174896aef9c16"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a0b65b69372d6fc3c9c5174896aef9c16">lastx</a> {0}</td></tr>
<tr class="memdesc:a0b65b69372d6fc3c9c5174896aef9c16"><td class="mdescLeft">&#160;</td><td class="mdescRight">last mouse x-position <br /></td></tr>
<tr class="separator:a0b65b69372d6fc3c9c5174896aef9c16"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a47aff1080ae859c6828ad227da5044c0"><td class="memItemLeft" align="right" valign="top"><a id="a47aff1080ae859c6828ad227da5044c0"></a>
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a47aff1080ae859c6828ad227da5044c0">lasty</a> {0}</td></tr>
<tr class="memdesc:a47aff1080ae859c6828ad227da5044c0"><td class="mdescLeft">&#160;</td><td class="mdescRight">last mouse y-position <br /></td></tr>
<tr class="separator:a47aff1080ae859c6828ad227da5044c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad3e801c8f1138be0b706469d0b32cdf3"><td class="memItemLeft" align="right" valign="top"><a id="ad3e801c8f1138be0b706469d0b32cdf3"></a>
mjModel *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#ad3e801c8f1138be0b706469d0b32cdf3">mj_model</a></td></tr>
<tr class="memdesc:ad3e801c8f1138be0b706469d0b32cdf3"><td class="mdescLeft">&#160;</td><td class="mdescRight">mj model pointer <br /></td></tr>
<tr class="separator:ad3e801c8f1138be0b706469d0b32cdf3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0b86ee20f850f18989d8e19f1d47ab6d"><td class="memItemLeft" align="right" valign="top"><a id="a0b86ee20f850f18989d8e19f1d47ab6d"></a>
mjData *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classUIctr.html#a0b86ee20f850f18989d8e19f1d47ab6d">mj_data</a></td></tr>
<tr class="memdesc:a0b86ee20f850f18989d8e19f1d47ab6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">mj data pointer <br /></td></tr>
<tr class="separator:a0b86ee20f850f18989d8e19f1d47ab6d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>User interface control class. </p>
<p>This class mainly to control the window, render and user interaction from mouse and keyboard </p>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8h_source.html#l00019">19</a> of file <a class="el" href="GLFW__callbacks_8h_source.html">GLFW_callbacks.h</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac7f7359994a2338fb761080d5fd258b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac7f7359994a2338fb761080d5fd258b4">&#9670;&nbsp;</a></span>UIctr()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">UIctr::UIctr </td>
          <td>(</td>
          <td class="paramtype">mjModel *&#160;</td>
          <td class="paramname"><em>modelIn</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">mjData *&#160;</td>
          <td class="paramname"><em>dataIn</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Construct a new <a class="el" href="classUIctr.html" title="User interface control class.">UIctr</a> object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">modelIn</td><td>mujoco model pointer </td></tr>
    <tr><td class="paramname">dataIn</td><td>mujoco data pointer </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00010">10</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00108">mj_data</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>.</p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="afd0f6da49027175ca125ae8b373ec070"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afd0f6da49027175ca125ae8b373ec070">&#9670;&nbsp;</a></span>Close()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::Close </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>close the glfw and free mujoco sence and context </p>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00231">231</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00108">mj_data</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>.</p>

</div>
</div>
<a id="ab1ca66138345f413e29662d2f0d7d07f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab1ca66138345f413e29662d2f0d7d07f">&#9670;&nbsp;</a></span>createWindow()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::createWindow </td>
          <td>(</td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>windowTitle</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>saveVideo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create a Window object. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">windowTitle</td><td>window tile string </td></tr>
    <tr><td class="paramname">saveVideo</td><td>wherther to recorder the video </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00052">52</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00021">window</a>.</p>

</div>
</div>
<a id="ad381cf5b25d24a8fdd9438c9c7162fe1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad381cf5b25d24a8fdd9438c9c7162fe1">&#9670;&nbsp;</a></span>enableTracking()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::enableTracking </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>enable camera tracking mode </p>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00242">242</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

</div>
</div>
<a id="a087447123941f53a571a61dc667daafe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a087447123941f53a571a61dc667daafe">&#9670;&nbsp;</a></span>iniGLFW()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::iniGLFW </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>initialize glfw </p>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00043">43</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

</div>
</div>
<a id="a08662b29ecd40b29091da61a6f74f0a9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a08662b29ecd40b29091da61a6f74f0a9">&#9670;&nbsp;</a></span>Keyboard()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::Keyboard </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>key</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>scancode</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>act</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mods</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>keyboard callback </p>
<p>press backspace will reset the data press "1" will change motion state </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">key</td><td>key being acted </td></tr>
    <tr><td class="paramname">scancode</td><td></td></tr>
    <tr><td class="paramname">act</td><td>action, eg. press </td></tr>
    <tr><td class="paramname">mods</td><td>press GLFW_KEY_BACKSPACE will reset simulation release GLFW_KEY_1 will transit between pause and resume the simulation release GLFW_KEY_2 will pause the display </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00148">148</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00104">isContinuous</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00095">keyb</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00108">mj_data</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00103">runSim</a>.</p>

</div>
</div>
<a id="a2e1bb14aeca15e5fe8db238117e92a2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e1bb14aeca15e5fe8db238117e92a2c">&#9670;&nbsp;</a></span>Mouse_button()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::Mouse_button </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>button</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>act</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>mods</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mouse button callback </p>
<p>update mouse position and react to the mouse button action </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">button</td><td></td></tr>
    <tr><td class="paramname">act</td><td></td></tr>
    <tr><td class="paramname">mods</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00177">177</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00099">button_left</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00100">button_middle</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00101">button_right</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00105">lastx</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00106">lasty</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00021">window</a>.</p>

</div>
</div>
<a id="afe0583a3cfb9dfeef3254cb360dd0c06"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe0583a3cfb9dfeef3254cb360dd0c06">&#9670;&nbsp;</a></span>Mouse_move()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::Mouse_move </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xpos</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>ypos</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>mouse move callback </p>
<p>update mouse position and change the camera position for different mouse action </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xpos</td><td></td></tr>
    <tr><td class="paramname">ypos</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00190">190</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00099">button_left</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00100">button_middle</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00101">button_right</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00105">lastx</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00106">lasty</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00021">window</a>.</p>

</div>
</div>
<a id="af995236b8ef2ccd0140581130c4d4b36"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af995236b8ef2ccd0140581130c4d4b36">&#9670;&nbsp;</a></span>Scroll()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::Scroll </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>xoffset</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>yoffset</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>scroll callback </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">xoffset</td><td></td></tr>
    <tr><td class="paramname">yoffset</td><td></td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00225">225</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>.</p>

</div>
</div>
<a id="a19e0f736d7afbf0d186c296dd36306d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a19e0f736d7afbf0d186c296dd36306d4">&#9670;&nbsp;</a></span>updateScene()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void UIctr::updateScene </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>update the scene and rerender the window </p>

<p class="definition">Definition at line <a class="el" href="GLFW__callbacks_8cpp_source.html#l00104">104</a> of file <a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a>.</p>

<p class="reference">References <a class="el" href="GLFW__callbacks_8h_source.html#l00104">isContinuous</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00108">mj_data</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00107">mj_model</a>, <a class="el" href="GLFW__callbacks_8h_source.html#l00103">runSim</a>, and <a class="el" href="GLFW__callbacks_8h_source.html#l00021">window</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="GLFW__callbacks_8h_source.html">GLFW_callbacks.h</a></li>
<li><a class="el" href="GLFW__callbacks_8cpp_source.html">GLFW_callbacks.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
